import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import './assets/main.css'
import './assets/iconfont/iconfont.css'

import router from './router'

import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)
app.use(ElementPlus, { size: 'small', locale: zhCn })
app.use(pinia)
app.use(router)
app.mount('#app')
